package com.shunda.ysdgj.model.entity.goods;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shunda.ysdgj.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@TableName("ysdgj_goods_spec")
@Schema(description = "商品规格")
public class GoodsSpec extends BaseEntity {
    @Schema(description = "所属品类")
    private Long specCategoryId;

    @Schema(description = "品类类型 1可搜索品类 2不可搜索品类")
    @TableField(exist = false)
    private Integer specCategoryType;

    @Schema(description = "所属品类名称")
    @TableField(exist = false)
    private String specCategoryName;

    @Schema(description = "规格名称")
    private String specName;

    @Schema(description = "规格排序")
    private Integer specSort;

    @Schema(description = "商品规格项")
    @TableField(exist = false)
    private List<GoodsSpecItem> specItems;
}
